-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix snapshot tests #129
Fix snapshot tests #129
Conversation
Use ubuntu-22.04 instead of ubuntu-latest.
ChangesProblem (kind of) solved. The image snapshots are now only tested for CommentsIt could be a good idea to do one of these two in the near future:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good enough solution for now. Thank you!
On the larger question: Since the point of the snapshot is not pixel-perfect alignment across platforms anyway —OS difference in viewports, available fonts & other settings mean this is out of reach— I don't think we should be comparing them across OSs. I also still don't get why this results in an error as opposed to a snapshot that we have to approve manually as "similar enough" in testthat output. If that error cannot be avoided, snapshots are useless to us. |
I fully agree.
Computers are notoriously bad at common sense. Testing "similar enough" as opposed to "identical" would mean opening a whole new can of worms1.
Not sure if useless is the word I'll use, but indeed, they become quite annoying. Footnotes
|
Fix issue #128.